<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="jquery-1.9.1.js"></script>
<script type="text/javascript">
	/* $(document).ready(function(){
		$("#deleteNoticeBtn").click(function(){
			//alert("test");
			confirm("게시글을 삭제하시겠습니까?");
			$.ajax
		});
	}); */
</script>
</head>
<body>
<center>
<h1>공지사항</h1>
<table>
<tr>
	<td>번호:${requestScope.nvo.no }</td><td>제목:${requestScope.nvo.title }</td>
</tr>
<tr>
	<td>작성일시:${requestScope.nvo.datePosted }</td><td>조회수:${requestScope.nvo.hits }</td>
</tr>
<tr>
	<td colspan="2">
	<a href="downloadNoticeFile.do?savFileName=${requestScope.nvo.savFileName}">${requestScope.nvo.savFileName}</a>
	</td>
</tr>
<tr>
	<td colspan="2"><textarea rows="20" cols="50">${requestScope.nvo.content }</textarea></td>
</tr>
<tr>
	<td colspan="2" align="center">
	<a href="noticeList.do"><input type="button" value="목록"></a>
	<a href="updateNoticePage.do?no=${requestScope.nvo.no }"><input type="button" value="수정하기"></a>
	<a href="deleteNotice.do?no=${requestScope.nvo.no }"><input type="button" value="삭제" id="deleteNoticeBtn"></a>
	</td>
</tr>
</table>
</center>
</body>
</html>